<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/fn.tld" prefix="fn" %>
<div title="维护机动车分组" id="vehicleSelectDialog" class="dialogtitle">
	<div class="searchbox">
		<span class="fontRed">注:</span>带"<span class="fontRed">*</span>"为必填项
		<form id="frmVehicleGroup" onSubmit="return false">
			<input type="hidden" name="id" value="<c:out value='${vehicleGroup.id }'/>">
			<table id="vehicleGroupTable" cellspacing="0" cellpadding="0">
  				<tr>
   					<td align="right" style="width:90px;">名称：<span class="fontRed">*</span></td>
   					<td><input type="text" id="groupname" name="groupname" value="<c:out value='${vehicleGroup.groupname}'/>"></td>
   					<td style="width:90px" align="right">优先级：<span class="fontRed">*</span></td>
   					<td><input type="text" id="grouppriority" name="grouppriority" value="<c:out value='${vehicleGroup.grouppriority}'/>" onkeyup="this.value=this.value.replace(/\D/g,'')" maxlength="10"></td>
  				</tr>
  				<tr>
   					<td align="right" valign="top" style="width:90px;">号牌种类：<span class="fontRed">*</span></td>
   					<td>
   						<a href="javascript:licensePlateDialogView()">共 <label id="licensePlateDialogDialogNumber">${fn:length(lstPlatetypes)}</label> 条</a>
   						<button onclick="showSelectDialog('licensePlateDialog','rightLicencePlateKindList','ajaxShowLicencePlateKindSelectDialog.do',function(){$('#licensePlateDialogDialogNumber').text($('#rightLicencePlateKindList tbody tr').size());getDialogRightForString('rightLicencePlateKindList','platetypes');})">选择</button>
   					</td>
   					<td style="width:90px" align="right">车辆类型：<span class="fontRed">*</span></td>
    				<td>
   						<a href="javascript:vehicleTypeDialogView()">共 <label id="vehicleTypeDialogNumber">${fn:length(lstVehicleType)}</label> 条</a>
   						<button onclick="showSelectDialog('vehicleTypeDialog','rightVehicleTypeList','ajaxShowVehicleTypeSelectDialog.do',function(){$('#vehicleTypeDialogNumber').text($('#rightVehicleTypeList tbody tr').size());getDialogRightForString('rightVehicleTypeList','vehicletypes');})">选择</button>
   					</td>
  				</tr>
  				<tr>
   					<td align="right" style="width:90px;">车辆分类：<span class="fontRed">*</span></td>
					<td>
						<a href="javascript:vehicleClassificationDialogView()">共 <label id="vehicleClassificationDialogNumber">${fn:length(lstVehicleClassification)}</label> 条</a>
   						<button onclick="showSelectDialog('vehicleClassificationDialog','rightVehicleClassificationList','ajaxShowVehicleClassificationSelectDialog.do',function(){$('#vehicleClassificationDialogNumber').text($('#rightVehicleClassificationList tbody tr').size());getDialogRightForString('rightVehicleClassificationList','vehicleclassifications');})">选择</button>
   					</td>
   					<td style="width:90px" align="right">使用性质：<span class="fontRed">*</span></td>
   					<td>
   						<a href="javascript:useNatureDialogView()">共 <label id="useNatureDialogNumber">${fn:length(lstUseNature)}</label> 条</a>
   						<button onclick="showSelectDialog('useNatureDialog','rightUseNatureList','ajaxShowUseNatureSelectDialog.do',function(){$('#useNatureDialogNumber').text($('#rightUseNatureList tbody tr').size());getDialogRightForString('rightUseNatureList','vehicleusingcharacters');})">选择</button>
   					</td>
  				</tr>
  				<tr>
   					<td align="right" style="width:90px;">机动车：&nbsp;</td>
   					<td>
   						<a href="javascript:vehicleDialogView()">共 <label id="vehicleDialogNumber">${fn:length(vehicleGroup.illegalVehicleInfoList)}</label> 条</a>
   						<button onclick="showSelectDialog('vehicleDialog','rightVehicleList','ajaxShowVehicleSelectDialog.do',function(){$('#vehicleDialogNumber').text($('#rightVehicleList tbody tr').size());})">选择</button>
   					</td>
   					<td></td>
   					<td></td>
  				</tr>
   			</table> 
   			<%@ include file="licensePlateDialogView.jsp"%>
			<%@ include file="vehicleTypeDialogView.jsp"%>
			<%@ include file="vehicleClassificationDialogView.jsp"%>
			<%@ include file="useNatureDialogView.jsp"%>
			<%@ include file="vehicleDialogView.jsp"%>
   		</form>    
		<div id="infoVehicleGroup" class="fontRed"></div>
   	</div>   
</div>
<script>
	$("button").button();
</script>
